package com.lsj.core.response;

import lombok.Getter;

@Getter
public enum ResponseType {
    /**
     * @Author: lin.sj
     * @Date: 2021/5/26 17:35
     * @Desc: 提供返回对象的状态码
     **/
    success(200,"请求成功"),
    error(400,"数据性异常"),
    forbid(403,"权限不足"),
    unauthorized(401,"未认证"),
    system_error(500,"系统性异常");

    private int code;
    private String name;

    ResponseType(int code, String name) {
        this.code = code;
        this.name = name;
    }

}
